package com.cdu.practicaltraining.sys.service;

import com.cdu.practicaltraining.pojo.Role;

import java.util.List;

public interface RoleService {
    int add(Role role) throws Exception;
    Role findByName(String role_name) throws Exception;
    List<Role> roles() throws Exception;
    Role findById(long id) throws Exception;
    int updateRole(Role role) throws Exception;
    int deleteRole(long id) throws Exception;
}
